
#ifndef _MEMBER_BDOUBLESPINBOX_H_
#define _MEMBER_BDOUBLESPINBOX_H_

#include <BDoubleSpinBox>
#include <BString>

namespace BWE
{
	class member_BDoubleSpinBox
	{
	public:
		member_BDoubleSpinBox(BDoubleSpinBox* spinbox);
		~member_BDoubleSpinBox();

		bool freshRects();

		BDoubleSpinBox*		boss;
		Align				align;
		double				value;
		int					decimals;
		double				step;
		BRanged				range;
		BString				text;
		BString				prefix;
		BString				suffix;

		bool				dirty;
		bool			changed;
		bool			justFocused;
		bool			pressed;
		int				pressedIndex;
		BRect			prefixRect;
		BRect			textRect;
		BRect			suffixRect;
		int				hoverIndex;
		int				inputIndex;
		int				inputCount;
		BArray<BRect>	rects;
	};
}

#endif